import Vue from "vue";
import Vuex from "vuex";
import userinfo from "./modules/userInfo";
import tagsView from "./modules/tagsView";
import createPersistedState from "vuex-persistedstate";
Vue.use(Vuex);

export default new Vuex.Store({
    modules: {
        userinfo,
        tagsView
    },
    plugins: [
        // createPersistedState({
        //     key: "my-app-state", // 自定义键名
        //     paths: ["userinfo.userInfo"], // 只持久化md模块
        //     storage: window.sessionStorage // 或者 localStorage
        // })
    ]
});
